<?php
/* @var $this StatesController */
/* @var $model States */

$this->breadcrumbs=array(
	'States'=>array('index'),
	$model->state_code,
);

$this->menu=array(
	array('label'=>'List States', 'url'=>array('index')),
	array('label'=>'Create States', 'url'=>array('create')),
	array('label'=>'Update States', 'url'=>array('update', 'id'=>$model->state_code)),
	array('label'=>'Delete States', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->state_code),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage States', 'url'=>array('admin')),
);
?>

<h1>View States #<?php echo $model->state_code; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'state_code',
		'state_name',
		array(
            // block
            'label'=>'Is Active',
            'value'=> $model->is_active ? 'yes' : 'no',
        ),
        array(
            // block
            'label'=>'Active Lender',
            'value'=> $model->active_lender ? 'yes' : 'no',
        ),
        array(
            // block
            'label'=>'Active Borrower',
            'value'=> $model->active_borrower ? 'yes' : 'no',
        ),
        array(
            // block
            'label'=>'Active Broker',
            'value'=> $model->active_broker ? 'yes' : 'no',
        ),
	),
)); ?>
